﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <h3>LISTA DE TOQUES</h3>
    <div>
        <table class="table table-striped">
            <thead>
                <tr class="tr-head">
                    <th class="th-center">Empresa</th>
                    <th class="th-center">Localidad</th>
                    <th class="th-center">Numero de darsena</th>
                    <th class="th-center">Fecha y hora</th>
                    <th class="th-center">Interno del micro</th> 
                    <th></th>
                     <th></th>
                
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr class="tr-body">
                        <td class="td-center">@item.Empresa.Codigo</td>
                        <td class="td-center">@item.Destino.Codigo</td>
                        <td class="td-center">@item.NumeroDarsena</td>
                        <td class="td-center">@item.FechaHora</td>
                        <td class="td-center">@item.InternoMicro</td>

                        <td class="td-center"><a href="@Url.Action("borrar", "toque", new { id = item.Id })">Borrar</a></td>
                        <td class="td-center"><a href="@Url.Action("modificar", "toque", new { id = item.Id })">Modificar</a></td>
                    </tr>
                }

            </tbody>
        </table> <a class="btn btn-primary btn-lg active" role="button" href="@Url.Action("agregar", "toque")">AGREGAR</a>
            
    </div>
</body>
</html>
